package com.tech.koufu.tools;

import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.widget.EditText;

public class PublicFuc {
	public static final int CODE_Back = 14;
	public static final int code_login_suss = 3;
	public static final int code_register_req = 4;

	public static OnFocusChangeListener onFocusAutoClearHintListener = new OnFocusChangeListener() {
		@Override
		public void onFocusChange(View v, boolean hasFocus) {
			EditText textView = (EditText) v;
			String hint;
			if (hasFocus) {
				hint = textView.getHint().toString();
				textView.setTag(hint);
				textView.setHint("");
			} else {
				hint = textView.getTag().toString();
				textView.setHint(hint);
			}
		}
	};
}
